
	class Contact {
		
		private String firstname;
		private String secondname;
		private String number;//Saved as String so leading 0 will be shown
		private String address;
		
		public Contact(String f, String s,String num, String a){
			this.firstname = f;
			this.secondname = s;
			this.number = num;
			this.address = a;
		}
		
		public String getFirstName(){
			return this.firstname;
		}
		
		public String getSecondName(){
			return this.secondname;
		}
		
		public String getNumber(){
			return this.number;
		}
		
		public String getAddress(){
			return this.address;
		}
		
		public String getDetails(){//Return contact's details in String
			return(this.firstname + " " + this.secondname + "\n" + this.number + "\n" + this.address);
		}
		

}
